home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Devices / Qwertytunes / BigEasyTextish.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-03  |  1.8 KB  |  73 lines  |  [TEXT/KAHL]

  1. /*
  2.                 File:        BigEasyTextish.h
  3.             
  4.                 Copyright:    © 1990-1992 by Apple Computer, Inc., all rights reserved.
  5.             
  6.     This file is used in these builds: Warhol
  7.  
  8.                 Change History (most recent first):
  9.             
  10.          <5>      1/7/93    dvb        New functions (TruncateString).
  11.          <4>     1/20/92    dvb        Add more routines.
  12.          <3>      6/3/91    dvb        Just Hackin'.
  13.          <2>    11/16/90    dvb        Remove drawcstring
  14.          <1>    11/16/90    dvb        Brand New again!
  15.             
  16.                 To Do:
  17. */
  18.  
  19. /* file: BigEasyTextish.h
  20.  *
  21.  * Started 13 July 1989, more or less.
  22.  *
  23.  * Headers for routines for converting and
  24.  * displaying textish things on the Mac.
  25.  *
  26.  */
  27.  
  28.  
  29. /************************************
  30. * BigEasyTextish Global Variables
  31. ************************************/
  32.  
  33. #ifndef BigEasyTextishIncludes
  34. #define BigEasyTextishIncludes
  35.  
  36.  
  37. #ifdef BigEasyTextish
  38.     #define VAR
  39. #else
  40.     #define VAR extern
  41. #endif
  42.  
  43. VAR short gLeftMargin;
  44. VAR short gLineHeight;
  45.  
  46. #undef VAR
  47.  
  48. /************************************
  49. * Prototypes
  50. ************************************/
  51.  
  52. void AnyBaseToPString(long n,short format,short width,StringPtr c);
  53. void CToPString(char *src,StringPtr dst);
  54. void DrawNum(long n);
  55. void DrawFixedPoint(long n,short g,short p);
  56. void DrawFixed(long n,short g);
  57. void DrawFixedPointJustified(long n,short g,short p,short h);
  58. void DrawFixedJustified(long n,short g,short h);
  59. void DrawFrac(long n,short g);
  60. void DrawHexShort(unsigned short n);
  61. void DrawHexLong(unsigned long n);
  62. void DrawCR(void);
  63. short CStringWidth(char *);
  64. void CopyPString(StringPtr dest,StringPtr src);
  65. void ConcatenatePStrings(StringPtr dest,StringPtr src);
  66. void DrawStringRight(StringPtr s);
  67. void DrawStringCenter(StringPtr s);
  68. void DrawStringLeft(StringPtr s);
  69. void TruncateString(StringPtr s, short width);
  70. void DrawStringTruncated(StringPtr s, short width);
  71.  
  72. #endif BigEasyTextishIncludes
  73.